package cn.lovecyy.mockjson.core.type;

import cn.lovecyy.mockjson.core.domain.TypeConfig;
import cn.lovecyy.mockjson.core.gen.MockRandomUtils;

/**
 * IntTypeMocker
 *
 * @author Yakir
 */
public class IntTypeMocker implements TypeMocker {

	@Override
	public String getType() {
		return "int";
	}

	@Override
	public Object mock(TypeConfig config) {
		return MockRandomUtils.randomIntRange(config.getMainParam());
	}

}
